package mail.util;

import java.io.File;

public class FileUtil {
  public static boolean createDir(File file) {
    File parent = file.getParentFile();
    if(!parent.isDirectory()) {
      if(!createDir(parent)) {
        return false;
      }
    }
    return file.mkdir();
  }
}
